<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       Cake.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
$cakeDescription = "oursystem";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>

        <title>
            ..::: Al-Rehab Arabic :::.. 
        </title>

        <?php echo $this->Html->charset(); ?>

        <!-- Apple iOS and Android stuff (do not remove) -->
        <meta name="apple-mobile-web-app-capable" content="no" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black" />

        <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,maximum-scale=1" />

        <!-- Required Stylesheets --> 

        <?php
        echo $this->Html->css(array("extra.css", "reset.css", "text.css", "fonts/ptsans/stylesheet.css", "fluid.css",
            "core/shared.css", "core/panels.css", "core/core.css", "core/error.css", "core/button.css", "icons/16x16.css",
            "icons/24x24.css", "icons/32x32.css", "core/table.css", "../jui/css/jquery.ui.all.css", " ", "core/form.css", "core/misc.css"));

        echo $this->Html->script(array("jquery-1.7.2.min.js", "core/mws.js", "demo/demo.js", "../jui/js/jquery-ui-1.8.20.min.js", "../jui/js/jquery.ui.timepicker.min.js"));
        ?>  


        <script src="<?php echo $this->webroot; ?>plugins/jgrowl/jquery.jgrowl-min.js" type="text/javascript"></script>
        <script src="<?php echo $this->webroot; ?>plugins/datatables/jquery.dataTables.min.js" type="text/javascript"></script>
        <script type="text/javascript">var BASE_URL = '<?php echo $this->webroot; ?>' ;</script>

        <script type="text/javascript">
            function web_root(){
                
                return "<?php echo $this->webroot; ?>";
            }
            $(document).ready(function() {
                $(".mws-datepicker").datepicker({
                    showOtherMonths:true,
                    dateFormat:"yy-mm-dd"
                });
                $(".mws-tabs").tabs();
                $("#mws-ui-button-radio, #mws-ui-button-cb").buttonset();

            });
        </script>

        <?php echo "<style>" . $_COOKIE["guest"]["style"] . "</style>"; ?>


    </head>
    <body>
        <?php //AppController::RunOurSystem(); ?>


        <!-- Header -->
        <div id="mws-header" class="clearfix">

            <!-- Logo Container -->
            <div id="mws-logo-container">

                <!-- Logo Wrapper, images put within this wrapper will always be vertically centered -->
                <div id="mws-logo-wrap">
                    <a href="<?php echo $this->webroot; ?>" ><img src="<?php echo $this->webroot . "images/logo.png"; ?>" alt="mws admin" /></a>
                </div>
            </div>

            <!-- User Tools (notifications, logout, profile, change password) -->
            <div id="mws-user-tools" class="clearfix">

                <!-- Notifications -->
                <div id="mws-user-notif" class="mws-dropdown-menu">
                    <a href="#" class="mws-i-24 i-alert-2 mws-dropdown-trigger">Notifications</a>

                    <!-- Unread notification count -->
                    <span class="mws-dropdown-notif">35</span>

                    <!-- Notifications dropdown -->
                    <div class="mws-dropdown-box">
                        <div class="mws-dropdown-content">
                            <ul class="mws-notifications">
                                <li class="read">
                                    <a href="#">
                                        <span class="message">
                                            Lorem ipsum dolor sit amet consectetur adipiscing elit, et al commore
                                        </span>
                                        <span class="time">
                                            January 21, 2012
                                        </span>
                                    </a>
                                </li>
                                <li class="read">
                                    <a href="#">
                                        <span class="message">
                                            Lorem ipsum dolor sit amet
                                        </span>
                                        <span class="time">
                                            January 21, 2012
                                        </span>
                                    </a>
                                </li>
                                <li class="unread">
                                    <a href="#">
                                        <span class="message">
                                            Lorem ipsum dolor sit amet
                                        </span>
                                        <span class="time">
                                            January 21, 2012
                                        </span>
                                    </a>
                                </li>
                                <li class="unread">
                                    <a href="#">
                                        <span class="message">
                                            Lorem ipsum dolor sit amet
                                        </span>
                                        <span class="time">
                                            January 21, 2012
                                        </span>
                                    </a>
                                </li>
                            </ul>
                            <div class="mws-dropdown-viewall">
                                <a href="#">View All Notifications</a>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Messages -->
                <div id="mws-user-message" class="mws-dropdown-menu">
                    <a href="#" class="mws-i-24 i-message mws-dropdown-trigger">Messages</a>

                    <!-- Unred messages count -->
                    <span class="mws-dropdown-notif">35</span>

                    <!-- Messages dropdown -->
                    <div class="mws-dropdown-box">
                        <div class="mws-dropdown-content">
                            <ul class="mws-messages">
                                <li class="read">
                                    <a href="#">
                                        <span class="sender">John Doe</span>
                                        <span class="message">
                                            Lorem ipsum dolor sit amet consectetur adipiscing elit, et al commore
                                        </span>
                                        <span class="time">
                                            January 21, 2012
                                        </span>
                                    </a>
                                </li>
                                <li class="read">
                                    <a href="#">
                                        <span class="sender">John Doe</span>
                                        <span class="message">
                                            Lorem ipsum dolor sit amet
                                        </span>
                                        <span class="time">
                                            January 21, 2012
                                        </span>
                                    </a>
                                </li>
                                <li class="unread">
                                    <a href="#">
                                        <span class="sender">John Doe</span>
                                        <span class="message">
                                            Lorem ipsum dolor sit amet
                                        </span>
                                        <span class="time">
                                            January 21, 2012
                                        </span>
                                    </a>
                                </li>
                                <li class="unread">
                                    <a href="#">
                                        <span class="sender">John Doe</span>
                                        <span class="message">
                                            Lorem ipsum dolor sit amet
                                        </span>
                                        <span class="time">
                                            January 21, 2012
                                        </span>
                                    </a>
                                </li>
                            </ul>
                            <div class="mws-dropdown-viewall">
                                <a href="#">View All Messages</a>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- User Information and functions section -->
                <div id="mws-user-info" class="mws-inset">

                    <!-- User Photo -->
                    <div id="mws-user-photo">
    <!--                	<img src="example/profile.jpg" alt="User Photo" />-->
                    </div>

                    <!-- Username and Functions -->
                    <div id="mws-user-functions">
                        <div id="mws-username">
                            <?php
                            if (isset($_SESSION['Auth']['User']['username'])) {
                                echo($_SESSION['Auth']['User']['username']);
                            }
                            ?>
                        </div>
                        <ul>
                            <li><a href="#">Profile</a></li>
                            <li><a href="#">Change Password</a></li>
                            <?php echo '<li>' . $this->Html->link(__('Logout'), array('controller' => 'users', 'action' => 'logout')) . '</li>'; ?> </ul>
                    </div>
                </div>
            </div>
        </div>
        <!-- Start Main Wrapper -->
        <div id="mws-wrapper">
            <!-- Necessary markup, do not remove -->
            <div id="mws-sidebar-stitch"></div>
            <div id="mws-sidebar-bg"></div>

            <!-- Sidebar Wrapper -->
            <div id="mws-sidebar">

                <!-- Searchbox -->
                <div id="mws-searchbox" class="mws-inset">
                    <form action="">
                        <input type="text" class="mws-search-input" />
                        <input type="submit" class="mws-search-submit" />
                    </form>
                </div>

                <!-- Main Navigation -->
                <div id="mws-navigation">
                    <ul>
                        <li>
                            <a href="<?php echo $this->Html->url(array("controller" => "configurations", "action" => "theme")); ?>" class="mws-ic-16 ic-lightbulb-off">اعدادت النظام</a></li>
                        <li>
                            <a href="#" class="mws-ic-16 ic-lightbulb">Subjects</a>
                            <ul <?php echo (($this->params["controller"] == "subjects") ? "class='open'" : "class='closed'") ?>>
                                <li><a href="<?php echo $this->Html->url(array("controller" => "subjects", "action" => "index")); ?>" class="mws-ic-16 ic-lightbulb-off">List All</a></li>
                                <li><a href="<?php echo $this->Html->url(array("controller" => "subjects", "action" => "add")); ?>" class="mws-ic-16 ic-lightbulb-off">Add New</a></li>
                            </ul>
                        </li>
                        <li class="active">
                            <a href="#" class="mws-ic-16 ic-lightbulb">lessons</a>
                            <ul <?php echo (($this->params["controller"] == "lessons") ? "class='open'" : "class='closed'") ?>>
                                <li><a href="<?php echo $this->Html->url(array("controller" => "lessons", "action" => "index")); ?>" class="mws-ic-16 ic-lightbulb-off">List All</a></li>
                                <li><a href="<?php echo $this->Html->url(array("controller" => "lessons", "action" => "add")); ?>" class="mws-ic-16 ic-lightbulb-off">Add New</a></li>
                            </ul>
                        </li>
                        <li class="active">
                            <a href="#" class="mws-ic-16 ic-lightbulb"> Study levels </a>
                            <ul <?php echo (($this->params["controller"] == "studylevels") ? "class='open'" : "class='closed'") ?>>
                                <li><a href="<?php echo $this->Html->url(array("controller" => "studylevels", "action" => "index")); ?>" class="mws-ic-16 ic-lightbulb-off">List All</a></li>
                                <li><a href="<?php echo $this->Html->url(array("controller" => "studylevels", "action" => "add")); ?>" class="mws-ic-16 ic-lightbulb-off">Add New</a></li>
                            </ul>
                        </li>

                    </ul>
                </div>
            </div>

            <!-- Main Container Start -->
            <div id="mws-container" class="clearfix">

                <!-- Inner Container Start -->
                <div class="container">
                    <?php echo $this->Session->flash(); ?>

                    <?php echo $this->fetch('content'); ?>

                </div>
                <!-- Inner Container End -->

                <!-- Footer -->
                <div id="mws-footer">
                    Copyright AZSTART.COM 2012. All Rights Reserved.
                </div>

            </div>
            <!-- Main Container End -->

        </div>



    </body>
</html>
